﻿Public Class departamentoBO

    Dim departamento As New departamentoDAO


    Public Function getDepartamentos() As Generic.List(Of departamentoVO)

        Try

            Return departamento.getDepartamentos

        Catch ex As Exception

            Throw ex

        End Try


    End Function



    Public Function populaGridDestinos(ByVal grid As DataGridView) As BindingSource

        Try

            Return departamento.populaGridDestinos(grid)

        Catch ex As Exception

            Throw ex

        End Try
    End Function

    Public Function getDepartamento(ByVal id_departamento As Integer) As departamentoVO
        Try
            Return departamento.getdepartamento(id_departamento)
        Catch ex As Exception
            Throw ex
        End Try
    End Function

End Class
